import schedule

from FS_RPA import settings
from feishu.feishu_bitable import FeishuBiTable

# 初始化飞书表格操作类
feishu_bitable = FeishuBiTable(
    app_config=settings.FEISHU_APP_CONFIGS,
    app_token=settings.APP_TOKEN
)

fields = [{
    '小红书昵称': '123',
    '顺序': 1,
    'ID号': '1234',
}]

result2 = feishu_bitable.add_batch_record(
    table_id='tblZ0zhQtxK0HFXN',
    fields=fields,
    # image_field_name="发布截图",
    # image_path=screenshot_path
)
